<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
        <ul>
            <!-- <li v-for="item in obj">{{ item }}</li> -->
            <li v-for="(value, key) in obj">{{ value }} -- {{key}}</li>
        </ul>

        <ul>
            <!-- 生成9个li，num是从1开始到9 -->
            <li v-for="num in 9"> {{ num }}</li>
        </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        data () {
          return {
            obj: {
              name: 'jack',
              age: 16,
              height: 175
            }
          }
        },
        methods: {}
      })
    </script>
  </body>
</html>
